package org.idea.qiyu.framework.mybatis.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @Author linhao
 * @Date created in 10:09 上午 2021/10/7
 */
@ConfigurationProperties(prefix = "qiyu.mybatis.datasource")
public class MyBatisProperties {

    private String configPath;

    private String username;

    private String password;

    private String url;

    private String driverName;

    public String getConfigPath() {
        return configPath;
    }

    public void setConfigPath(String configPath) {
        this.configPath = configPath;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getDriverName() {
        return driverName;
    }

    public void setDriverName(String driverName) {
        this.driverName = driverName;
    }

    public MyBatisProperties(String configPath, String username, String password, String url, String driverName) {
        this.configPath = configPath;
        this.username = username;
        this.password = password;
        this.url = url;
        this.driverName = driverName;
    }

    public MyBatisProperties() {
    }
}
